The ColorPicker Component > Using the ColorPicker component > ColorPicker properties

 

ColorPicker properties

You can set the following properties for the ColorPicker component using the Property inspector:

Property name

Value

Description

Editable

true or false

Determines whether users can input their own colors.

Row Count

number

Sets the number of swatches per row displayed in the ColorPicker's pop-up menu.

Color List

array

Creates a list of colors (in form #RRGGBB) from which users can choose.

Init Color

color

Sets the initial color selected in the ColorPicker.

Change Handler

function name

Sets the name of the function to be called when the user selects a new color.


Note: If the color list is left undefined, the component defaults to the standard web-safe palette.